import { createApp } from 'vue'
import App from './App.vue'

// elementui 中文
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import './assets/css/element-ui.scss'

//全局设置
import router from './main/router'
import './main/axios'
import './main/nprogress'
import './assets/css/style.css'

const app = createApp(App)

//注入可在模板直接使用的全局方法
import { sys } from './main/func.js'
app.config.globalProperties.$power = sys.power

app.use(router)
    .use(ElementPlus, { locale: zhCn })
    .mount('#app')